stylecontext: Make sure we always clear the cache when the CSS changes
authorBenjamin Otte <otte@redhat.com>
Sat, 13 Dec 2014 02:41:33 +0000 (03:41 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 13 Dec 2014 02:45:08 +0000 (03:45 +0100)
After b49c7c34214da2d8d5e6dae2e8d0b0fe1b23f68e we were no longer doing a
full revalidate after GTK_CSS_CHANGE_SOURCE changes.

This fixes spurious failures of widgets not properly updating when
changing the theme.

gtk/gtkstylecontext.c

index 6bd35c75540f136463950686d27d2796e425dab9..77739972ec433ea5214efa32498e5a3512f527f5 100644 (file)
@@ -736,6 +736,8 @@ style_values_lookup (GtkStyleContext *context)
   else
     {
       build_properties (context, values, info->decl, NULL, &priv->relevant_changes);
+      /* These flags are always relevant */
+      priv->relevant_changes |= GTK_CSS_CHANGE_SOURCE;
     }
 
   g_object_unref (values);